import request from '@/utils/request'

// 查询证书固定字段列表
export function listSystemField(query) {
  return request({
    url: '/training/systemField/list',
    method: 'get',
    params: query
  })
}

// 查询证书固定字段详细
export function getSystemField(sysytemFieldId) {
  return request({
    url: '/training/systemField/' + sysytemFieldId,
    method: 'get'
  })
}

// 新增证书固定字段
export function addSystemField(data) {
  return request({
    url: '/training/systemField',
    method: 'post',
    data: data
  })
}

// 修改证书固定字段
export function updateSystemField(data) {
  return request({
    url: '/training/systemField',
    method: 'put',
    data: data
  })
}

// 删除证书固定字段
export function delSystemField(sysytemFieldId) {
  return request({
    url: '/training/systemField/' + sysytemFieldId,
    method: 'delete'
  })
}
